import Layout from "../views/layout/Layout";

const _import = require("./_import_" + process.env.NODE_ENV);

export default {
  path: "/set",
  component: Layout,
  name: "set",
  meta: { title: "设置管理", icon: "icon" },
  children: [
    // {
    //   path: "list",
    //   component: _import("set/brokerage/brokerage"),
    //   name: "setBrokerage",
    //   meta: { title: "返佣设置" }
    // },
    // {
    //   path: "avatar",
    //   component: _import("set/avatar/manage"),
    //   name: "avatarmanage",
    //   meta: {
    //     title: "头像管理"
    //   }
    // },
    /*{
            path: 'bondSetting',
            component: _import('set/bond/index'),
            name: 'bondSetting',
            meta: {title: '保证金设置'},
        },*/
    // {
    //   path: "level",
    //   component: _import("set/level/list"),
    //   name: "setLevelList",
    //   meta: {
    //     title: "升级设置",
    //     buttons: {
    //       add: { label: '新建', enabled: true },
    //       edit: { label: '编辑', enabled: true },
    //       delete: { label: '删除', enabled: true }
    //     }
    //   }
    // },
    // {
    //   path: "partner",
    //   component: _import("set/partner/list"),
    //   name: "setPartner",
    //   meta: {
    //     title: "城市合伙人",
    //     buttons: {
    //       setPartnerCity: { label: '设置城市数量', enabled: true },
    //       setPartnerRegion: { label: '设置区/县数量', enabled: true }
    //     }
    //   }
    // },
    // {
    //   path: "version",
    //   component: _import("set/version/list"),
    //   name: "setVersion",
    //   meta: {
    //     title: "APP版本设置",
    //     buttons: {
    //       add: { label: '新建', enabled: true },
    //       edit: { label: '编辑', enabled: true }
    //     }
    //   }
    // },
    {
      path: "password",
      component: _import("set/password/index"),
      name: "modifyPassword",
      meta: { title: "修改密码", permission: 'all' }, // permission: 'all' 所有用户都拥有该权限
      hidden: true
    },
    // {
    //   path: "channelPackage",
    //   component: _import("set/package/channel-package"),
    //   name: "channelPackage",
    //   meta: {
    //     title: "渠道包管理",
    //     buttons: {
    //       add: { label: '新建', enabled: true },
    //       edit: { label: '编辑', enabled: true }
    //     }
    //   }
    // },
    {
      path: "channelPackage/edit/:id",
      component: _import("set/package/channel-package-edit"),
      name: "channelPackageEdit",
      meta: { title: "渠道包管理编辑", noCache: true },
      props: true,
      hidden: true
    }
  ]
};
